package com.syxbbs.forum.services;

import com.syxbbs.forum.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IMessageService {
    void create(Message message);

    Integer selectUnreadCount(Long receiveUserId);

    List<Message> selectByReceiveId(Long receiveUserId);

    //
    void updateStateById(Long id ,Byte state);

    //根据id查询站内信
    Message selectById(Long id);

    void reply(Long replied ,Message message);


}
